package org.example.controller;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
    public static void main(String[] args) {
        String password="WZF122554454";
        Pattern p=Pattern.compile("^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$");
     Matcher matcher=p.matcher(password);
        System.out.println(matcher.find());
    }
}
